package com.rgsx.controller;

import com.rgsx.service.FunService;
import com.rgsx.vo.ResultVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@ResponseBody
@RequestMapping("/chat")
@CrossOrigin
@Api(tags = "娱乐相关的接口")
public class FunController {
    @Autowired
    FunService funService;

    @GetMapping("/qyk")
    @ApiOperation(value = "青云客机器人聊天",notes = "青云客机器人聊天")
    public ResultVo chat(String msg){
        return funService.chat(msg);
    }
}
